<template>
	<div class="mobile">
		<div class="nav-top">
			<div class="left">
				<router-link to="/portal/netm"><img src="../../../assets/img/phone-back.png" alt=""></router-link>
			</div>
			<div class="right">
				<span>代表建议</span>
				<img src="../../../assets/img/phone-more.png" alt="">
			</div>
		</div>
		<!-- <div class="search">
			<div class="left">
				<input type="text" placeholder="搜索编号、案由">
			</div>
			<div class="right">
				<img src="../../../assets/img/phone-search.png" alt="">
			</div>
		</div>
		<div class="tab-list">
			<div class="tab active">全部(12)</div>
			<div class="tab">经济建设(7)</div>
			<div class="tab">生态文明建设 (0)</div>
			<div class="tab">文化建设 (0)</div>
			<div class="tab">政治建设(1) </div>
			<div class="tab">社会建设 (4)</div>
		</div> -->
		<div class="trends-form">
			<div class="form-detail">
				<div class="form-list" v-for="item in List"   @click="goDetail(item.id)">
					<h5>{{ item.brief }}</h5>
					<div class="text2"><span>编号：{{ item.id }}</span><span>建议分类：政治建设</span></div>
					<div class="text2"><span>建议人：{{ item.suggesterName }}</span><span>办理类型：{{ item.category }}</span></div>
					<div class="text2"><span>办理单位：{{ item.handlingUnit }}</span></div>
					<div class="text2"><span>备注：办结</span></div>
				</div>
			</div>
		</div>
		<!-- <div class="trends-nav">
			<div class="item"><img src="../../../assets/img/phone-icon1.png" alt="">新建动态</div>
			<div class="item active"><img src="../../../assets/img/phone-icon2.png" alt="">历史记录</div>
		</div> -->
	</div>
</template>

<script>
import { getSuggestions } from "@/api/website";
export default {
	data() {
		return {
			List: []
		}
	},
	components: {

	},
	created() {
		this.userInfo = JSON.parse(sessionStorage.getItem("useInfo"))
		this.getData(this.userInfo.id);
	},
	mounted() {

	},
	methods: {
		getData(id) {
			getSuggestions({ id: id }).then(response => {
				this.List = response.rows;
			});
		},
		goDetail(id){
			this.$router.replace({ path: '/portal/net/suggestionDetailm' + '?id=' + id })
		}
	}

};
</script>

<style scoped lang="scss"></style>